import java.util.Arrays;

public class CopyArr {

    public static void main(String[] args) {
        int[] arr  = {11, 22, 33};
        int[] p = CopyA(arr);
        System.out.println(Arrays.toString(p));
        System.out.println(Arrays.toString(arr));
    }

    public static int[] CopyA(int[] arr) {
        int[] p = new int[arr.length];
        for (int i = 0; i < arr.length; i++) {

            p[i] = arr[i];
        }
        return p;
    }
}
